package mapper;

import org.apache.ibatis.annotations.Param;
import pojo.AppInfo;

import java.util.List;

public interface AppInfoMapper {
    List<AppInfo> selList(@Param("softwareName") String softwareName, @Param("status") Integer status,@Param("categoryLevel1") Integer categoryLevel1,
                          @Param("categoryLevel2") Integer categoryLevel2,@Param("categoryLevel3") Integer categoryLevel3,@Param("flatformId") Integer flatformId);
    AppInfo view(Integer id);
    AppInfo apkExist(String APKName);
    AppInfo nameExist(String softwareName);
    int add(AppInfo appInfo);
    int update(AppInfo appInfo);
    int delVersion(Integer id);
    int delAppInfo(Integer id);
    int onSale(@Param("status") Integer status,@Param("id") Integer id);
}